30e6c8c0705cdeeeceaa28149ecad2e9b67d1cb8,src/java/org/apache/hadoop/hbase/util/Migrate.java,Migrate,run,#String[]#,124
Before Change
// See if there is a file system version file
if (FSUtils.checkVersion(fs, rootdir)) {
LOG.info("No upgrade necessary.");
return 0;
}
After Change
LOG.info("Starting upgrade" + (readOnly ? " check" : ""));
rootdir = fs.makeQualified(new Path(this.conf.get(HConstants.HBASE_DIR)));
if (!fs.exists(rootdir)) {
throw new FileNotFoundException("HBase root directory " +
rootdir.toString() + " does not exist.");
}
// See if there is a file system version file
String version = FSUtils.checkVersion(fs, rootdir);
if (version != null &&
version.compareTo(HConstants.FILE_SYSTEM_VERSION) == 0) {
LOG.info("No upgrade necessary.");